﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InstrumentUpgradeExtra.aspx.cs"
    Inherits="Runda.CMS.Portal.ContractFollowUp.InstrumentUpgradeExtra" %>
<%@ Register Assembly="RadInput.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>

    <script src="../Content/jquery-1.3.2.js" type="text/javascript"></script>

    <script src="../Content/global.js" type="text/javascript"></script>

    <script src="../Content/Grid/map_grid.js" type="text/javascript"></script>

    <link rel="stylesheet" type="text/css" href="../Content/Grid/mapgrid.css" />
    <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Grid/Grid.css" rel="stylesheet" type="text/css" />
    <link href="../Content/global.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Find/find.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Tab/tabs.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="../Content/global.css" />

    <script language="javascript" src="../Content/settings.aspx"></script>

    <script src="../Content/lookup/Lookup.js" type="text/javascript"></script>

    <link href="../Content/Form/form.css" rel="Stylesheet" type="text/css" />

    <script language="javascript" src="../Content/Detail.js"></script>

    <script language="javascript" src="../Content/lookup/Lookup.js"></script>

    <script language="javascript" src="../Content/Menu/menu.js"></script>

    <script language="javascript" src="../Content/util.js"></script>

    <script type="text/javascript" src="../Content/DateTime/date.js"></script>

    <script type="text/javascript" src="../Content/DateTime/time.js"></script>

    <script src="../Content/global.js" type="text/javascript"></script>

    <script type="text/javascript">
        window.onload = function() {
            var value = document.getElementById('hiddenInstrumentID').value;
            document.getElementById('parmT').additionalparams = "InstrumentID=" + value;
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    
         <rad:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <rad:AjaxSetting AjaxControlID="btnAdd">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="gridSubItems" />                  
                </UpdatedControls>
            </rad:AjaxSetting>                         
            <rad:AjaxSetting AjaxControlID="gridSubItems">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="gridSubItems" LoadingPanelID="AjaxLoadingPanel"/>                              
                </UpdatedControls>
            </rad:AjaxSetting>   
        </AjaxSettings>                                
    </rad:RadAjaxManager>
    <rad:AjaxLoadingPanel runat="server" ID="AjaxLoadingPanel">
        <img src="../Images/Loading.gif" />数据载入...
    </rad:AjaxLoadingPanel>
    <table class="mnubar" cellspacing="0" cellpadding="0">
        <tbody>
            <tr>
                <td width="9">
                    <img hspace="3" src="../Content/Menu/mnu_vSpacer.gif" />
                </td>
                <td class="icMenu" nowrap>
                    <asp:LinkButton ID="lnkbtnSaveAndClose" runat="server" OnClick="lnkbtnSaveAndClose_Click"><span class="menu" title="保存&amp;关闭" onclick="window.execScript(this.action);"><img class="mnuBtn" src="../Content/Menu/SaveClose_16_blue.gif"><span class="mnuBtn">保存&amp;关闭</span></span></asp:LinkButton>
                    <img src="../Content/Menu/separator.gif">
                    <span class="menu" title="关闭" onclick="window.close();">
                        <img class="mnuBtn" src="../Content/Menu/Close_16_blue.gif"><span class="mnuBtn">关闭</span></span>
                </td>
            </tr>
        </tbody>
    </table>
    <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
    </div>
    <div id="areaForm" class="area">
        <table cellspacing="0" cellpadding="0" width="100%">
            <tbody>
                <tr>
                    <td valign="top">
                        <div style="display: inline" id="appForm_tab0" class="tab">
                            <asp:HiddenField ID="hiddenRegisterID" runat="server" />
                            <asp:TextBox ID="hiddenInstrumentID" runat="server" Style="display: none"></asp:TextBox>
                            <table style="table-layout: fixed" id="Section1" cellspacing="0" cellpadding="3"
                                width="800px">
                                <tr>
                                    <td align="right">
                                        升级配件
                                    </td>
                                    <td align="left">
                                        <table cellpadding="0" cellspacing="0" width="100%" id="instrumentAssembly" style="">
                                            <tr>
                                                <td nowrap>
                                                    <div class="lu" detailpage="/SyncManage/InstrumentList.aspx?InstrumentCategoryGUID=">
                                                        <span class="lui" oid="" runat="server" onclick="openlui();" id="hiddenAccessoryName">
                                                        </span>&nbsp;</div>
                                                </td>
                                                <td width="25" style="text-align: right;">
                                                    <img class="lu2" id="parmT" lookupstyle="single" features="dialogWidth:360px;dialogHeight:500px;resizable:yes;center:yes;status:no;help:no;scroll:no;"
                                                        lookupcustom="" src="/Images/btn_off_lookup.gif" lookupclass="AccessoryInInstrument"
                                                        lookupbrowse="0" additionalparams="" /><input maptype="lu" id="hiddenAccessoryID"
                                                            class="lu" type="hidden" runat="server" name="hiddenAccessoryID" value="" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                               
                            </table>
                            <asp:Button runat="server" Text="添加" ID="btnAdd" width="120px" 
                                onclick="btnAdd_Click"/>
                            <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
                            </div>
                            <div style="margin: 5px 0 5px 0">
                            </div>
                            <table class="mnubar" cellspacing="0" cellpadding="0">
                                <tbody>
                                    <tr>
                                        <td style="padding-left: 5px" nowrap>
                                            <b>配件升级明细</b>
                                        </td>
                                        <td style="padding-left: 5px">
                                            <img src="../Content/Grid/separator.gif">
                                        </td>
                                        <td class="icMenu" nowrap>
                                        </td>
                                        <td class="icMenu mnuRight" nowrap>                                          
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                             <rad:RadGrid runat="server" ID="gridSubItems" Skin="OCM" AutoGenerateColumns="False"
                            AllowSorting="false" GridLines="None" EnableAJAX="true" EnableAJAXLoadingTemplate="True"  OnItemCommand="gridSubItems_ItemCommand">
                            <AJAXLoadingTemplate>
                                <img src="../Images/loadding_orange.gif" />
                                加载中...
                            </AJAXLoadingTemplate>
                            <MasterTableView DataKeyNames="AccessoryID">
                                <Columns>                                                                                                                           
                                    <rad:GridTemplateColumn HeaderText="配件名称">
                                        <ItemTemplate>                                           
                                             <asp:Label ID="AccessoryName" runat="server" Text='<%# Eval("AccessoryName") %>'>
                                            </asp:Label>
                                              <asp:Label ID="AccessoryID" runat="server" Text='<%# Eval("AccessoryID") %>' Visible="false">
                                            </asp:Label>
                                        </ItemTemplate>
                                    </rad:GridTemplateColumn>                     
                                    <rad:GridButtonColumn CommandName="delete" Text="删除">
                                    </rad:GridButtonColumn>
                                </Columns>
                            </MasterTableView>
                        </rad:RadGrid>
                          <table class="mnubar" cellspacing="0" cellpadding="0">
                                <tbody>
                                    <tr>
                                        <td style="padding-left: 5px" nowrap>
                                            <b>软件升级</b>
                                        </td>
                                        <td style="padding-left: 5px">
                                            <img src="../Content/Grid/separator.gif">
                                        </td>
                                        <td class="icMenu" nowrap>
                                        </td>
                                        <td class="icMenu mnuRight" nowrap>                                          
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                             <table style="table-layout: fixed" id="Table1" cellspacing="0" cellpadding="3"
                                width="800px">
                             <tr>
                                    <td align="right">
                                        软件版本
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="SoftwareVersion" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                        </table>
                        </div>                                                
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    </form>
</body>
</html>
